<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <div id="test">
    <div v-once>
      <h2 v-if="false">用户名是{{userInfo.username}}</h2>
      <h2>身价是{{userInfo.price}}</h2>
    </div>

    <div v-pre>
      <h2 v-if="false">用户名是{{userInfo.username}}</h2>
      <h2>身价是{{userInfo.price}}</h2>
    </div>
  </div>

  <script src="../js/vue.js"></script>
  <script>
    new Vue({
      el: "#test",
      data: {
        userInfo:{
          username:'tom',
          price:12000
        }
      }
    })
  </script>
</body>
</html>